/**
 * 提交按钮索索商品
 */
function searchGood(){
	var key=$("#key").val();
	var shopid=$("#shopid").val();
	if(key==null||key==''){
		alert("搜索不能为空!");
	}else{
	$.ajax({
		  url: 'price/ptype!searchByKey.action',
		  dataType: 'json',
		  data: {searchKey:key,shopid:shopid},
		  success: function(data){
			  $('.list-h').html('');
			  $.each(data,function(i){
				$('.list-h').append("<li index='"+i+"' onclick='log(7,3,117835)' sku='117835'><div class='lh-wrap'>" +
						"<div class='p-img'><a target='_blank' href='"+this.url+"'><img width='220' height='220' alt='"+this.title+"' src='"+this.pic_url+"' data-img='1' title='马上断货!先锋经典,超万好评,数量有限,赶快把温暖抱回家!!'></a><div class='picon pi3'><b></b></div></div>" +
						"<div class='p-name'><a target='_blank' href='http://item.jd.com/117835.html' title='马上断货!先锋经典,超万好评,数量有限,赶快把温暖抱回家!'>"+this.title+"<font style='color: #ff0000' class='adwords' name='117835'>红色</font></a></div><div id='djd117835' class='p-price'><strong>￥299.00</strong><span id='p117835'><a class='pt1' title='本商品正在降价销售中'>直降</a></span></div><div class='extra'><span class='evaluate'><a target='_blank' href='http://club.jd.com/review/117835-1-1.html'>已有33285人评价</a></span><span class='reputation'>(93%好评)</span></div>" +
								"<div class='stocklist' stock='117835'><span class='st33'>北京有货</span></div>" +
								"<div class='btns'><a onclick='log(1,7,117835)' stock='117835' tpl='1' href='http://gate.jd.com/InitCart.aspx?pid=117835&pcount=1&ptype=1' target='_blank' class='btn-buy'>取货上架</a><a id='coll117835' href='javascript:;' class='btn-coll'>编辑名称</a><a class='btn-compare btn-compare-s' id='comp_117835' skuid='117835'><span></span>设置</a></div><div class='p-shopnum'></div></div></li>");
			  });
		  }
	});
	}
}